<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>营业网点查询</title>
	</head>
	<body>
		
		<div><h1>营业网点查询</h1></div>
		<div>
		<table>
		<tr>
				<td>名称</td>
				<td>地址</td>
				<td>所在地区</td>
				<td>电话</td>
				<td>操作</td>
			</tr>
		 <c:forEach items="${Branches}" var="a">
			<tr>
			    <td>${a.name}</td>
				<td>${a.address}</td>
				<td>${a.getCityArea().name}</td>
				<td>${a.telephone }</td>
				<td><a href="Serviet_1?a=xg_1&b=${a.id}">修改</a></td>
			</tr>
		</c:forEach>
		</table>
		</div>
	</body>
</html>
